all:
	@echo "usage make [-option]"
	@echo "options:"
	@echo "0 - borwein"
	@echo "1 - black_scholes"
	@echo "2 - gauss_legendre"
	@echo "3 - monte_carlo"
0:
	gcc -o borwein borwein.c -lgmp -pthread -w
1: rand_bm.o
	gcc -o black_scholes black_scholes.c -lm rand_bm.o -pthread -w
2:
	gcc -o gauss_legendre gauss_legendre.c -lm -lgmp -pthread -w
3:
	gcc -o monte_carlo monte_carlo.c -lm -pthread -w
rand_bm.o: rand_bm.h
	gcc -c rand_bm.c
clean:
	rm *.o
	rm ./borwein
	rm ./black_scholes
	rm ./gauss_legendre
	rm ./monte_carlo
